import gdata.spreadsheet.text_db

client = gdata.spreadsheet.text_db.DatabaseClient(username='fedex1@gmail.com',password='meromaro6')
# db = client.GetDatabases(name='My Tracks-street running')
db = client.GetDatabases(name='My Tracks-trail running')
table=db[0].GetTables()[0]
rows=table.GetRecords(1,1000)
for row in rows:
  print row.content.get('name'),',', row.content.get('date'),',',  row.content.get('movingtime'),',',  row.content.get('distance'),',',  row.content.get('distanceunit'),',', row.content.get('map')

for row in rows:
    print '==='
    for cell in row.content:
	print '%s = %s' % (cell, row.content.get(cell), )
